import Vue from 'vue'
import App from '@/pages/index.vue'
import router from '@/router/index'
import store from '@/store'
import api from "@/api/api";

api.uploadUserInfo();


Vue.config.productionTip = false


import {Loading,PullRefresh ,Image as VanImage,Divider,Field,NoticeBar  ,CellGroup, Cell, Sticky, Button, Search, Tabbar, TabbarItem, Icon} from "vant";
const componentList = [
  Sticky,
  Button,
  Search,
  Tabbar,
  TabbarItem,
  Icon,
  Cell,
  VanImage,
  Field,
  Divider,
  NoticeBar,
  CellGroup,
  PullRefresh,
  Loading
]
componentList.map((item) => {
  Vue.use(item)
})

api.globalConnection()


const app=new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#root')
window.Vue=app

